import app from './modules/app'
import settings from './modules/settings'
import user from './modules/user'

const getters = {
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  // avatar: state => state.user.avatar,
  avatar(){
    return user.state.userInfo.avatar
  },
  name(){
    return user.state.userInfo.name
  }
}
export default getters
